package mortal.game.mvc
{
	import mortal.game.control.*;
	import mortal.mvc.core.*;
	
	public class GameController extends Object
	{
		public static var gameui:GameUIController;
		public static var chat:ChatController;
		public static var taskTrack:TaskTrackController;
		public static var shortcuts:ShortcutsController;
		
		/*
		public static var player:PlayerController;
		public static var playerInfo:PlayerInfoController;
		public static var scene:SceneController;
		
		public static var dropItem:DropItemController;
		public static var pack:PackController;
		public static var equipment:EquipmentController;
		public static var skill:SkillController;
		public static var task:TaskController;
		
		public static var mounts:MountsController;
		public static var shopMall:ShopMallController;
		public static var wareHouse:WareHouseController;
		public static var wareHouseBuyItem:WareHouseBuyItemController;
		public static var wareHouseBuyExtendItem:WareHouseBuyExtendItemController;
		public static var packBuyItem:PackBuyItemController;
		public static var packBuyExtendItem:PackBuyExtendItemController;		
		public static var friend:FriendsController;
		public static var stall:StallController;
		public static var shop:ShopController;
		public static var dialog:DialogController;
		public static var relive:ReliveController;
		public static var trade:TradeController;
		public static var petMountsList:PetMountsListController;
		public static var system:SystemController;
		public static var issmController:IssmController;
		public static var bigMap:MapUIController;
		public static var gm:GMController;
		public static var speaker:SpeakerController;
		public static var systemSetting:SystemSettingController;
		public static var sysHistory:SysHistoryController;
		public static var autoFightBrief:AutoFightBriefController;
		public static var mail:MailController;
		public static var pet:PetController;
		public static var petForge:PetForgeController;
		public static var group:GroupController;
		public static var career:CareerController;
		public static var nearbyList:NearbyListController;
		public static var guide:GuideController;
		public static var cycle:CycleController;
		public static var guideItem:GuideItemController;
		public static var guideWelcome:GuideWelcomeController;
		public static var copy:CopyController;
		public static var effect:EffectController;
		public static var gainAward:GainAwardController;
		public static var ranking:RankingController;
		public static var status:StatusController;
		public static var offlineExp:OfflineExpController;
		public static var msgTip:MsgTipControl;
		public static var guidOpt:GuideOptController;
		public static var viewOpt:ViewItemController;
		
		public static var moveAward:MoveAwardController;
		public static var quickRegister:QuickRegisterController;
		public static var guild:GuildController;
		public static var noviceCard:NoviceCardController;
		public static var daily:DailyController;
		public static var target:TargetController;
		public static var guideDrug:GuideDrugController;
		public static var guildManor:GuildManorController;
		public static var npcShopMall:NpcShopMallController;
		public static var musicAndSounds:MusicAndSoundsController;
		public static var guideMovie:GuideMovieController;
		public static var activity:ActivityController;
		public static var petMeet:PetMeetController;
		public static var friendBless:FriendsBlessController;
		public static var restDouble:RestDoubleController;
		public static var battlefield:BattlefieldController;
		public static var vip:VIPController;
		public static var huntTask:HuntTaskController;
		public static var petWareHouse:PetWareHouseController;
		public static var guildShop:GuildShopController;
		public static var guildWarehouse:GuildWarehouseController;
		public static var guildFlameController:GuildFlameController;
		public static var runBusiness:RunBusinessController;
		public static var flyEntity:FlyEntityController;
		public static var transport:TransportController;
		public static var treasureWarehourse:TreasureWareHouseController;
		public static var flowersController:FlowersController;
		public static var treasure:TreasureController;
		public static var spa:SpaController;
		public static var smelt:SmeltController;
		public static var fish:FishController;
		public static var playerRoot:PlayerRootController;
		public static var playerSavvy:PlayerSavvyController;
		public static var killEvilTask:KillEvilTaskController;
		public static var question:QuestionController;
		*/
		
		private static var _isInit:Boolean = false;
		
		public function GameController()
		{
			
		}
		
		public static function init() : void
		{
			if (_isInit)
			{
				return;
			}
			_isInit = true;
			
			gameui = new GameUIController();
			chat = new ChatController();
			taskTrack = new TaskTrackController();
			shortcuts = new ShortcutsController();
			
			/*
			system = new SystemController();
			player = new PlayerController();
			scene = new SceneController();
			pack = new PackController();
			equipment = new EquipmentController();
			skill = new SkillController();
			task = new TaskController();			
			mounts = new MountsController();
			shopMall = new ShopMallController();
			wareHouse = new WareHouseController();
			wareHouseBuyItem = new WareHouseBuyItemController();
			wareHouseBuyExtendItem = new WareHouseBuyExtendItemController();
			packBuyItem = new PackBuyItemController();
			packBuyExtendItem = new PackBuyExtendItemController();			
			friend = new FriendsController();
			stall = new StallController();
			shop = new ShopController();
			dialog = new DialogController();
			mail = new MailController();
			relive = new ReliveController();
			trade = new TradeController();
			petMountsList = new PetMountsListController();
			bigMap = new MapUIController();
			issmController = new IssmController();
			gm = new GMController();
			pet = new PetController();
			dropItem = new DropItemController();
			speaker = new SpeakerController();
			systemSetting = new SystemSettingController();
			sysHistory = new SysHistoryController();
			autoFightBrief = new AutoFightBriefController();
			playerInfo = new PlayerInfoController();
			petForge = new PetForgeController();
			group = new GroupController();
			career = new CareerController();
			nearbyList = new NearbyListController();
			guide = new GuideController();
			cycle = new CycleController();
			effect = new EffectController();
			guideItem = new GuideItemController();
			guideWelcome = new GuideWelcomeController();
			copy = new CopyController();
			gainAward = new GainAwardController();
			ranking = new RankingController();
			status = new StatusController();
			offlineExp = new OfflineExpController();
			msgTip = new MsgTipControl();
			guidOpt = new GuideOptController();
			viewOpt = new ViewItemController();
			
			moveAward = new MoveAwardController();
			quickRegister = new QuickRegisterController();
			guild = new GuildController();
			noviceCard = new NoviceCardController();
			daily = new DailyController();
			target = new TargetController();
			guideDrug = new GuideDrugController();
			guildManor = new GuildManorController();
			npcShopMall = new NpcShopMallController();
			musicAndSounds = new MusicAndSoundsController();
			guideMovie = new GuideMovieController();
			activity = new ActivityController();
			petMeet = new PetMeetController();
			friendBless = new FriendsBlessController();
			restDouble = new RestDoubleController();
			battlefield = new BattlefieldController();
			vip = new VIPController();
			huntTask = new HuntTaskController();
			petWareHouse = new PetWareHouseController();
			guildShop = new GuildShopController();
			guildWarehouse = new GuildWarehouseController();
			guildFlameController = new GuildFlameController();
			runBusiness = new RunBusinessController();
			flyEntity = new FlyEntityController();
			transport = new TransportController();
			treasureWarehourse = new TreasureWareHouseController();
			flowersController = new FlowersController();
			treasure = new TreasureController();
			spa = new SpaController();
			smelt = new SmeltController();
			fish = new FishController();
			playerRoot = new PlayerRootController();
			playerSavvy = new PlayerSavvyController();
			killEvilTask = new KillEvilTaskController();
			question = new QuestionController();
			*/
			
		}
		
		
		public static function getControllerById(param1:int) : Controller
		{
			/*
			switch(param1)
			{
				case 0:
				{
					return pack;
				}
				case 1:
				{
					return wareHouse;
				}
				case 3:
				{
					return player;
				}
				case 7:
				{
					return mounts;
				}
				default:
				{
					return null;
					break;
				}
			}
			*/
			return null;
		}
		
	}
}
